package com.fzkj.shejimoshi.bridge1;

/**
 * @DESCRIPTION: TODO
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/16 14:51
 */
public class Test {
    public static void main(String[] args) {
        Color color = new Red();
        Rectangle rectangle = new Rectangle();
        rectangle.setColor(color);
        rectangle.draw();

        Square square = new Square();
        square.setColor(color);
        square.draw();
    }
}
